﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace ForzaGT3.Areas.Admin.Models
{
    public class SeriesModel
    {
        public Guid Id { get; set; }

        [Required(ErrorMessage = "Short Title Is Required")]
        public string ShortTitle { get; set; }

        [Required(ErrorMessage = "Title Is Required")]
        public string Title { get; set; }

        [Display(Name = "Circuit")]
        [Required(ErrorMessage = "Circuit Is Required")]
        public Guid CircuitId { get; set; }

        [Display(Name = "StartDate")]
        [Required(ErrorMessage = "Start Date Is Required")]
        public DateTime StartDate { get; set; }

        [Display(Name = "FinishDate")]
        [Required(ErrorMessage = "Finish Date Is Required")]
        public DateTime FinishDate { get; set; }

        [Display(Name = "QualifyingRaceDate")]
        [Required(ErrorMessage = "Qualifying Race Date Is Required")]
        public DateTime QualifyingRaceDate { get; set; }

        [Display(Name = "ChampionshipRaceDate")]
        [Required(ErrorMessage = "Championship Race Date Is Required")]
        public DateTime ChampionshipRaceDate { get; set; }

        [AllowHtml]
        public string Remarks { get; set; }

        [AllowHtml]
        public string RemarksEnglish { get; set; }

        public string BannerUrl { get; set; }

        public HttpPostedFileBase BannerImage { get; set; }

    }
}